package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

//陌生人推荐的圈子  圈子可以是朋友圈 可以是默认人圈子，如果是默认人会有个推荐
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(collection = "recommend_movement")
public class RecommendMovement implements java.io.Serializable {

    private static final long serialVersionUID = 5874126532504390567L;

    @Id
    private ObjectId id; //主键id
    @Indexed
    private Long userId; //推荐的用户id
    private Long pid;
    private ObjectId movementId; //外键d
    @Indexed
    private Double score =0d; //推荐得分
    private Long created; //日期
}
